package com.yl.order.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

import java.io.Serializable;

/**
 * create by cjx on 2024/5/28
 * desc:
 */
@Entity
public class SpecEntity implements Serializable {
    @Transient
    public static final long serialVersionUID = -1L;
    @Id(autoincrement = true)
    private Long id;  //数据库自动增长id

    private String groupNumber; // 分组名称

    private String name; // 名称
    @Unique
    private String number; // 编码

    private int sort; // 排序

    private float ratio; // 价格比率

    private boolean affect; // 是否影响配方

    @Generated(hash = 2058293974)
    public SpecEntity(Long id, String groupNumber, String name, String number,
            int sort, float ratio, boolean affect) {
        this.id = id;
        this.groupNumber = groupNumber;
        this.name = name;
        this.number = number;
        this.sort = sort;
        this.ratio = ratio;
        this.affect = affect;
    }

    @Generated(hash = 168102231)
    public SpecEntity() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGroupNumber() {
        return this.groupNumber;
    }

    public void setGroupNumber(String groupNumber) {
        this.groupNumber = groupNumber;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return this.number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getSort() {
        return this.sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public float getRatio() {
        return this.ratio;
    }

    public void setRatio(float ratio) {
        this.ratio = ratio;
    }

    public boolean getAffect() {
        return this.affect;
    }

    public void setAffect(boolean affect) {
        this.affect = affect;
    }

}
